package com.wcards.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wcards.config.R;
import com.wcards.entity.AdoptApplicationInfo;
import com.wcards.entity.CommentInfo;

public interface CommentInfoService extends IService<CommentInfo> {

    R<String> postComment(Integer animalNumbers, Integer userId, String commentContent);

    R<Page<CommentInfo>> getCommentByAnimalNumbers(Integer animalNumbers, Integer pageSize, Integer pageNumbers);

    R<Page<CommentInfo>> getCommentByUserId(Integer UserId,Integer pageSize,Integer pageNumbers);

    R<String> updateComment(Integer commentNumbers,String commentContent);

    R<String> deleteComment(Integer commentNumbers);
}